package demo.inoutput;

import java.io.File;

public class IOConstructure {
	public static void main(String[] args) {
		try {
			File file1 = new File("C:/Users/TayDo");
			File file2 = new File("C:/Users/TayDo", "\\Demo\\InitialTest.java");
			File file3 = new File(file1, "\\Demo\\InitialTest.java");
			
			System.out.println(file1.getCanonicalPath());
			System.out.println(file2.getCanonicalPath());
			System.out.println(file3.getCanonicalPath());
			System.out.println(file3.getAbsolutePath());
			
			if (file1.isDirectory()) {
				System.out.println("asd");
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
